const fs = require('fs')


function readFile(path) {
    return fs.readFileSync(path, 'utf8')
}

function saveFile(path, data) {
    return fs.writeFileSync(path, data)
}

function deleteFile(path) {
    fs.unlinkSync(path)
}

function existDir(path) {
    return fs.existsSync(path)
}

function existsFile(path) {
    return fs.existsSync(path)
}

function makeDir(path) {
    fs.mkdirSync(path, { recursive: true })
}


module.exports = { readFile, saveFile, existDir, existsFile, makeDir, deleteFile }
